// 机票服务
var planeColumns = [{
    id: 'name',
    title: '申请人',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
  }, {
    id: 'ptime',
    title: '出发日期',
    type: 'string',
    width: 150,
    columnClass: 'text-center',
  }, {
    id: 'saddress',
    title: '始发地',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
  }, {
    id: 'eaddress',
    title: '目的地',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
  }, {
    id: 'price',
    title: '机票费用预估',
    type: 'string',
    width: 150,
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
      var content = '￥' + value + '元';
      return content;
    }
  },
  {
    id: 'number',
    title: '数量',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
  },
  {
    id: 'status',
    title: '审批状态',
    type: 'string',
    width: 75,
    columnClass: 'text-center',
  },
  {
    id: 'msg',
    title: '备注说明',
    type: 'string',
    columnClass: 'text-left',
  },
  // {
  //   id: 'operation',
  //   title: '操作',
  //   width: 100,
  //   type: 'string',
  //   columnClass: 'text-center',
  //   resolution: function (value, record, column, grid, dataNo, columnNo) {
  //     var content = '';
  //     content += '<a class="btn btn-xs btn-primary" href="#/selreclist"><i class="icon-eye-open"></i>  领用记录</a>';
  //     return content;
  //   }
  // }
];
var planeOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '机票服务',
  datas: [{
    name: '张三',
    ptime: '2015-05-05',
    saddress: '南京',
    eaddress: '北京',
    price: '￥99.99元',
    number: '58',
    status: '审核中',
    msg: '备注说明测试数据',
  },{
    name: '张三',
    ptime: '2015-05-05',
    saddress: '南京',
    eaddress: '北京',
    price: '￥99.99元',
    number: '58',
    status: '已通过',
    msg: '备注说明测试数据',
  },],
  columns: planeColumns,
  gridContainer: 'planeContainer',
  toolbarContainer: 'planeToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var planeGrid = $.fn.dlshouwen.grid.init(planeOption);
$(function () {
  planeGrid.load();
});